package com.hsgc.dao;

import com.hsgc.model.Category;
import com.hsgc.model.CategoryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//@Mapper //往spring容器中添加对象
public interface CategoryDao {
    public List<Category> findAll();
    public List<Category> select(CategoryQuery query);

    int insert(Category category);
    int update(Category category);
    //软删除  只是修改了以下状态信息
    int updateStatus(@Param("id") int id, @Param("status") Integer status);


}
